/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-06-22
 * Time: 23:04
 */
//实现双线不带头不循环链表
public class Test {
    public static void main(String[] args) {
        MyLinkedList list=new MyLinkedList();
        list.addFirst(1);
        list.addFirst(2);
        list.addFirst(3);
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        boolean bool=list.addIndex(3,0);
        System.out.println(bool);
        list.display();
        list.remove(0);
        list.removeAllKey(3);
        list.display();
        list.clear();
        list.display();
        list.addFirst(1);
        list.remove(1);
        list.addFirst(1);
        list.removeAllKey(1);
    }
}
